package service.Supper.impl;

import dao.Supper.SuperCosOrderDao;
import dao.Supper.impl.SuperCosOrderDaoImpl;
import pojo.All;
import pojo.Orderse;
import service.Supper.SuperCosOrderService;

import java.util.List;

/**
 * 商家模块---订单
 */
public class SuperCosOrderServiceImpl implements SuperCosOrderService {
    private SuperCosOrderDao superCosOrderDao;
    public SuperCosOrderServiceImpl(){
        superCosOrderDao = new SuperCosOrderDaoImpl();
    }
   //查询全部
    public List<All> getOrderseList(int currentPage, int pageSize, Long orderseId) {
        return superCosOrderDao.getOrderseList(currentPage,pageSize,orderseId);
    }

    @Override
    public int orderseCount(Long orderseId) {
        return superCosOrderDao.orderseCount(orderseId);
    }

    @Override
    public int updateOrderse(Orderse orderse) {
        return superCosOrderDao.updateOrderse(orderse);
    }

    @Override
    public int updateOrderseStatus(int orderseStatus, Long id) {
        return superCosOrderDao.updateOrderseStatus(orderseStatus,id);
    }

    @Override
    public All getOrderseById(Long id) {
        return superCosOrderDao.getOrderseById(id);
    }
}
